import {defineStore} from "pinia";

const layout: Layout.Store = defineStore('layout', {
    state: (): Partial<Layout.State> => ({}), actions: {
        updateState(_state: Partial<Layout.State>) {
            this.$state = {
                ...this.$state,
                ..._state
            }
        }
    }, persist: {
        enabled: true
    }
})
export default layout